<%@ page language="java" import="java.util.*,com.li.bean.*,com.li.daoImpl.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	UserDaoImpl udi = new UserDaoImpl();
	List<User> list = (List<User>)request.getAttribute("list");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>个人设置页面</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" href="./CSS/user.css">
</head>

<body>
	<div id="head">
		<h1>个人页面</h1>
	</div>
	<div id="body">
		<div id="left">
			<div id="talk">
				<p>讨论</p>
			</div>
		</div>
		<div id="top">
			<div id="top_left">
				<strong>用户:<%=list.get(0).getUsern() %></strong>
			</div>
			<div id="top_right">
				<ul>
					<li><input type="button" value="发帖"></li>
					<li><input type="button" value="重置密码"></li>
					<li><a class="exit" href="./register.html">退出</a></li>
				</ul>
			</div>
		</div>
		<div id="center">

			<table id="tb1" border="1px" align="center">
				<tr>
					<td>帖子内容</td>
					<td>发帖人</td>
					<td>最后修改时间</td>
				</tr>
				<%
					for(int i = 0;i<list.size();i++){
						User user = list.get(i);
				%>
				<tr>
					<td><%=user.getArticle().getContent() %></td>
					<td><%=user.getUsern() %></td>
					<td><%=user.getArticle().getTime() %></td>
				</tr>
				<%
					}
				%>
			</table>
		</div>
	</div>
</body>
</html>